package com.team.childapp.config;

/**
 * Create on: 2024/7/31
 * by Mr.Zhu
 * Description: 网络请求地址管理
 */
public class Api {
    public static boolean IS_TEST = true;//是否是测试环境
    public static boolean IS_TRUE_TEST = false;//是否是准生产环境
    public static String BASE_SITE = "";
//http://10.201.1.47/api/auth/appLogin
    static {

        if (Api.IS_TEST) {
//            BASE_SITE = "http://10.201.1.47/";
            BASE_SITE = "https://sit-gw.ai-tongban.com/";
        } else {
            if (IS_TRUE_TEST) {
                BASE_SITE = "http://v1.api.huisenky.com/";//准生产环境
            } else {
                BASE_SITE = "http://v1.api.huisenky.com/";//生产环境
            }
        }
    }

    //登录
    public static class Login {
        public static String URL_LOGIN = BASE_SITE + "auth/appLogin";
        public static String URL_APP_AUTO_LOGIN = BASE_SITE + "auth/appAutoLogin";
        //获取验证码
        public static String URL_GET_VERIFY= BASE_SITE + "auth/sendVercode";
        public static String URL_GET_USERINFO= BASE_SITE + "appbc/tbuser/getDeViceInfo";
        public static String URL_UPDATE_USER= BASE_SITE + "appbc/tbuser/updateUserInfo";
        public static String URL_UPDATE_USER_SEX = BASE_SITE + "appbc/tbuser/updateUser";
    }
    //联系人
    public static class Constants {
        //联系人信息
        public static String URL_CONSTANTS = BASE_SITE + "appbc/contact/findContactsByUserId";
        //新增联系人
        public static String URL_CONSTANTS_ADD = BASE_SITE + "appbc/contact/addContactnew";
        //更新联系人
        public static String URL_CONSTANTS_UPDATE = BASE_SITE + "appbc/contact/upContact";
    }
    //公共
    public static class CommonRequest{
        //检查更新
        public static String URL_UPDATE_APP= BASE_SITE + "appbc/version/detailByAppId/TB_APP";
        //更新位置信息
        public static String URL_UPDATE_LOCATION = BASE_SITE +"appbc/deviceInfo/syncLocation";
    }
    //社区
    public static class Community {
        //社区发布
//        public static String URL_ADD = "http://192.168.210.53:9204/club/addClub";
        public static String URL_ADD = BASE_SITE +"appbc/club/addClub";
        //获取社区列表
        public static String URL_COMMUNITY_LIST = BASE_SITE + "appbc/club/findClubByUserId";
    }

    public static class AIHistory{
        //http://10.201.1.47/api/appbc/log/findByMsgListByUserId?pageNum=1&pageSize=10&type=1
        //ai助手历史记录
        public static String AI_HELPER_HISTORY =BASE_SITE + "appbc/log/findByMsgListByUserId";
    }

    //学习园地
    public static class StudyGarden{
        public static String URL_GET_STUDY = BASE_SITE +"appbc/learninfo/findLearnGardenList";
    }

    //实时通话
    public static class VoiceChat{
        public static String URL_VOICE = BASE_SITE + "appbc/chat/voice";
    }
}
